package daam.main;

import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class HowToPlayListener implements OnClickListener {
	
	private HowToPlay howToPlay;
	
	public HowToPlayListener(HowToPlay howToPlay) {
		this.howToPlay = howToPlay;
	
	}

	public void onClick(View v) {

		Button botao = (Button)v;
		
		if(botao.getId() == R.id.toMove)
			howToPlay.setLayout(R.layout.howtoplay_move);
	
		if(botao.getId() == R.id.toMain)
			howToPlay.setLayout(R.layout.howtoplay);
		
		if(botao.getId() == R.id.toPontos)
			howToPlay.setLayout(R.layout.howtoplay_pontos);
		
		if(botao.getId() == R.id.toVida)
			howToPlay.setLayout(R.layout.howtoplay_vidas);
		
		if(botao.getId() == R.id.toBomba)
			howToPlay.setLayout(R.layout.howtoplay_bomba);
	}

}
